package cn.two.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.two.model.OaSubmit;
import cn.two.service.submitService;



@Controller
@RequestMapping("/submit")
public class SubmintController {
	
	@Resource
	private submitService submitService;
	
	@RequestMapping("/listsu")
	public String getAllSu(HttpSession session){
		List<OaSubmit> listsub =submitService.getAllSub();
		session.setAttribute("listsub", listsub);
		return "buyList";
		
	}
	

}
